home *** CD-ROM | disk | FTP | other *** search
-
- SORTF Command
- -------------
-
- Purpose: This command reads data from an ASCII file, sorts the
- records, and writes the data to another file.
-
- Format: SORTF [d:][path]fname[.ext] [d:][path]fname[.ext] [/R][/+nnn]
-
- Remarks: Records read from the input file ending with a carriage
- return and line feed are considered logical records and may
- be up to 256 characters in length.
-
- The records are sorted into ascending ASCII character order
- unless /R is supplied to reverse the order.
-
- The key is taken from the first character position, unless
- the /+ operand is used to specify the location of the key
- within the records. The position may be a value from one
- to 255. The first 12 characters at that position are used
- as the record key.
-
- For example, to sort a file in descending order with the
- keys in position 10:
-
- SORTF TEST.DAT TEST.SRT /R/+10
-
- Depending on the amount of memory available, up to 40000
- records, or a file up to 16-Mb, may be sorted.
-
- The advantages of using SORTF instead of the SORT filter are:
- - files larger than 63K may be sorted
- - less time is required
-
- For best results, place the input file on the fastest
- available drive, e.g. RAM disk.
-
- Notes:
- Written by Vernon Buerg for the IBM PC using DOS 2.0 and is
- supplied for public domain use. All rights reserved.
-
- Not for sale or hire. Commercial use is prohibited. This means
- that no fee may be charged for any copies. Nor may SORTF be
- included (or bundled) with other goods or services. Exceptions
- may be granted upon written request only.
-
- For use by corporations and other institutions, contact
- AAI Systems for a licensing agreement.
-
- AAI Systems, Inc.
- c/o Vernon D. Buerg
- 456 Lakeshire Drive
- Daly City, CA 94015
- Data: (415) 994-2944, 2am-10am PDT
- CompuServe: 70007,1212
-
-
- Version 2.0, July 11, 1985.
- Corrects CR/LF problem. Remember, it is assumed that
- all "records" end in a carriage return (CR). Those
- that do not may appear as part of other records to
- your text editor.
- Version 2.1, August 3, 1985
- Corrects a problem sorting files larger than 64K.
-